package com.situ.springbootcondition;

import com.situ.springbootcondition.pojo.Role;
import com.situ.springbootcondition.pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.stereotype.Controller;

@SpringBootApplication
public class SpringbootConditionApplication {
    //@Autowired
    //private RedisTemplate redisTemplate;

    public static void main(String[] args) {
        //启动SpringBoot的应用，返回Spring的IOC容器
        ConfigurableApplicationContext context = SpringApplication.run(SpringbootConditionApplication.class, args);

       /* Object redisTemplate = context.getBean("redisTemplate");
        System.out.println(redisTemplate);*/

        /*User user = (User) context.getBean("user");
        System.out.println(user);

        Role role = (Role) context.getBean("role");
        System.out.println(role);*/
    }

}
